<template name="appBody">
    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">展开</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">CARBOOK</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li class="{{activeNavClass '/berths'}}"> <a href="{{pathFor 'berths'}}">车位</a></li>
                    <li class="{{activeNavClass '/departments'}}"><a href="{{pathFor 'departments'}}">部门</a></li>
                    <li class="{{activeNavClass '/statistics'}}"><a href="{{pathFor 'statistics'}}">统计</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">{{>loginButtons}}</a></li>
                    {{#if currentUser}}
                        {{updateProfileEmail}}
                        <li class="{{activeNavClass '/userprofile'}}"><a href="{{pathFor 'userprofile'}}">个人中心</a></li>
                    {{/if}}
              <!--       <li><a href="{{pathFor 'signin'}}">登录</a></li>
                    <li><a href="{{pathFor 'signup'}}">注册</a></li> -->
                </ul>
            </div>
            <!--/.nav-collapse -->
        </div>
    </nav>
    <div class="container">
        <div class="jumbotron">
            {{#each thisArray}} {{> yield}} {{/each}}
        </div>
    </div>
</template>
